package com.tjzx.entity;

/**
 * PeisPatientInfotipId entity. @author MyEclipse Persistence Tools
 */

public class PeisPatientInfotipId implements java.io.Serializable {

	// Fields

	private Integer id;
	private String infotip;
	private String loginname;

	// Constructors

	/** default constructor */
	public PeisPatientInfotipId() {
	}

	/** minimal constructor */
	public PeisPatientInfotipId(Integer id) {
		this.id = id;
	}

	/** full constructor */
	public PeisPatientInfotipId(Integer id, String infotip, String loginname) {
		this.id = id;
		this.infotip = infotip;
		this.loginname = loginname;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getInfotip() {
		return this.infotip;
	}

	public void setInfotip(String infotip) {
		this.infotip = infotip;
	}

	public String getLoginname() {
		return this.loginname;
	}

	public void setLoginname(String loginname) {
		this.loginname = loginname;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof PeisPatientInfotipId))
			return false;
		PeisPatientInfotipId castOther = (PeisPatientInfotipId) other;

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getInfotip() == castOther.getInfotip()) || (this
						.getInfotip() != null
						&& castOther.getInfotip() != null && this.getInfotip()
						.equals(castOther.getInfotip())))
				&& ((this.getLoginname() == castOther.getLoginname()) || (this
						.getLoginname() != null
						&& castOther.getLoginname() != null && this
						.getLoginname().equals(castOther.getLoginname())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37 * result
				+ (getInfotip() == null ? 0 : this.getInfotip().hashCode());
		result = 37 * result
				+ (getLoginname() == null ? 0 : this.getLoginname().hashCode());
		return result;
	}

}